<?php
/**
 * crawlAirportCode.php
 * 描述
 *
 * 作者:  胡毅 (huyi@comsenz.com)
 * 创建时间: 2012-10-13 下午4:30:01
 * 修改记录:
 *
 * $id$
 */

set_time_limit(0);
define('ROOT_PATH', dirname(dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))));
define('APP_PATH', dirname(dirname(dirname(dirname(dirname(__FILE__))))));
error_reporting(E_ALL ^ E_NOTICE);

require_once (ROOT_PATH . '/framework/library/Bootstrap.php');

try {

    $options = array('interface' => 'runtime');
    $bootstrap = & Bootstrap::factory($options);
    $bootstrap->run();
} catch (Exception $e) {

    echo $e->getMessage();
    exit();
}

class crawlAirportCode{

    public function run() {

        $feeyoAirportCode =& Service::factory('Flight_Service_Crawl_FeeyoAirportCode');
        $data = $feeyoAirportCode->crawlAirportCode();
    }
}


try {
    $obj = new crawlAirportCode();
    $obj->run();
} catch (Exception $e) {
    echo $e->getMessage();
}